package com.csx.base.design.behavior.strategy;

/**
 * @author cuisongxu
 * @date 2022/9/29 12:07
 */
public class Computer {

    /**
     * 主机上的USB接口
     */
    private USB usb;

    public void setUsb(USB usb) {
        // 插入USB设备
        this.usb = usb;
    }

    public void compute() {
        usb.read();
    }
}
